using System.Windows.Controls;
using System.Windows.Input;

namespace Controls
{
    public class DataGridCheckBox : CheckBox
    {
        protected override void OnPreviewKeyDown(KeyEventArgs e)
        {
            if (e.Key == Key.Space)
            {
                base.OnClick();
            }
        }

        protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
        {
            base.OnMouseLeftButtonUp(e);
            base.OnClick();
        }

        protected override void OnClick()
        {
        }
    }
}
